package com.rmb.api.controller;

import com.rmb.api.entity.Description;
import com.rmb.api.service.DescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
/**
 * @author zhao
 */
@RestController
@RequestMapping("/Description")
public class DescriptionController {
    @Autowired
    private DescriptionService descriptionService;

    /**
     *查询所有
     * @return
     * **/
    @GetMapping("/findAll")
    public List<Description> findAll(){
        return descriptionService.findList();
    }

}
